package model;

/*
 * 
 * LevelEntity class
 * 
 * Class for object blocks that make up a level. Every 50x50 pixel
 * square in the world is a LevelEntity with its own parameters.
 * 
 */

public class LevelEntity {

	private int location;
	private int height;
	private Block type;
	private int hostileDamage;

	/**
	 * LevelEntity
	 * 
	 * creates a level entity based upon an x and y location, a block type and
	 * how much damages/healing it does when you make contact with it
	 * 
	 * @param entityXLocation
	 * @param entityYLocation
	 * @param entityType
	 * @param entityHostileDamage
	 */
	public LevelEntity(int entityXLocation, int entityYLocation,
			Block entityType, int entityHostileDamage) {
		location = entityXLocation;
		height = entityYLocation;
		type = entityType;
		hostileDamage = entityHostileDamage;
		// Rectangle rec = new Rectangle(entityXLocation*50,
		// 800-(entityYLocation*50), 50, 50);
	}

	/**
	 * getType
	 * 
	 * returns what type of block an entity is
	 * 
	 * @return
	 */
	public Block getType() {
		return this.type;
	}

	/**
	 * getHostileDamage
	 * 
	 * returns the amount of hostile damage a block does
	 * 
	 * @return
	 */
	public int getHostileDamage() {
		return this.hostileDamage;
	}

	/**
	 * getLocation
	 * 
	 * returns the current loaction of the block
	 * 
	 * @return
	 */
	public int getLocation() {
		return this.location;
	}

	/**
	 * getHeight
	 * 
	 * returns the current height of a level entity
	 * 
	 * @return
	 */
	public int getHeight() {
		return this.height;
	}
}